package net.xju3_4.service.impl;

import net.xju3_4.common.utils.PageInfo;
import net.xju3_4.dao.OrderDao;
import net.xju3_4.entity.OrderDTOEntity;
import net.xju3_4.entity.OrderEntity;
import net.xju3_4.service.AdminOrderService;

public class AdminOrderImpl implements AdminOrderService {
    private OrderDao orderDao = new OrderDao();

    @Override
    public PageInfo<OrderDTOEntity> PageList(String username, String merchantName, String  orderId, Integer pageNo, Integer pageSize) {
       PageInfo<OrderDTOEntity>orders= orderDao.PageList(username,merchantName,orderId,pageNo,pageSize);
       return orders;


    }

    @Override
    public boolean orderDelete(Integer id) {
        return orderDao.orderDelete(id);
    }

    @Override
    public boolean orderUpdate(OrderEntity order) {
       return orderDao.orderUpdate(order);
    }
}
